import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:sleep/help_style.dart';
import 'package:sleep/page/enter.dart';
import 'package:sleep/page/home.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(
    ProviderScope(
      overrides: [],
      child: MaterialApp(
        color: HelpStyle.primarycolor,
        theme: ThemeData(
            appBarTheme: const AppBarTheme(
              backgroundColor: Colors.transparent,
              elevation: 0,
              centerTitle: true,
            ),
            scaffoldBackgroundColor: HelpStyle.backgroundColor),
        home: Enter(
          child: Home(),
        ),
        builder: EasyLoading.init(),
      ),
    ),
  );
}
